package cn.edu.lcu.cs.javaprogramming.basic.array;

import org.junit.jupiter.api.Test;

import java.util.Random;

/**
 * 数组演示
 * 2022/2/26 23:57
 *
 * @Author ling
 */
public class ArrayDemo {
    public static final int COUNT = 84;

    @Test
    public void randomInts() {
        int[] scores = new int[COUNT];

        Random random = new Random();
        for (int i = 0; i < scores.length; i++) {
            scores[i] = random.nextInt(101);
        }


        for (int score : scores) {
            System.out.println(score);
        }
    }
}
